lionsApp
    .controller('successCtrl', ['$scope', '$state', '$rootScope', 'lionsHttp', function ($scope, $state, $rootScope, lionsHttp) {
        $scope.url = location.href.split('#')[1]
        $scope.urlParam = $scope.url.split('?')[1]
        $scope.urlObj = {}
        $scope.urlParam.split('&').forEach( function (value) {
            $scope.urlObj[value.split('=')[0]] = value.split('=')[1]
        })
        lionsHttp.userInfo({}, {id: $scope.urlObj.userId}, function (data) {
            $scope.userInfo = data.data.user
            $scope.projectInfo = data.data.project
            lionsHttp.total({}, {}, function (data) {
                $scope.totalAmount = data.data.total
                $scope.totalTimes = data.data.number
            })
        })
    }])